package com.xuelang.pipeline.artifact.infrastructure.resource.converter;

import com.xuelang.pipeline.artifact.domain.resource.ArtifactAttribute;
import com.xuelang.pipeline.artifact.infrastructure.resource.dataobject.ArtifactAttributeDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 制品仓库属性实体与制品仓库属性DO转换器类
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
@Mapper
public interface ArtifactAttributeToArtifactAttributeDOConverter {

    ArtifactAttributeToArtifactAttributeDOConverter INSTANCE = Mappers.getMapper(ArtifactAttributeToArtifactAttributeDOConverter.class);

    /**
     * ArtifactAttribute转化为ArtifactAttributeDO
     * @param artifactAttribute
     * @return
     */
    ArtifactAttributeDO artifactAttributeToArtifactAttributeDO(ArtifactAttribute artifactAttribute);

    /**
     * ArtifactAttributeDO转化为ArtifactAttribute
     * @param artifactAttributeDO
     * @return
     */
    ArtifactAttribute artifactAttributeDOToArtifactAttribute(ArtifactAttributeDO artifactAttributeDO);

}
